<template>
  <div class="my-header">
    <div class="my-info">
      <el-avatar class="my-avatar" :src="avatarSrc"></el-avatar>
      <el-dropdown trigger="click">
        <span class="el-dropdown-link">
          管理员<i class="el-icon-caret-bottom el-icon--right"></i>
        </span>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item class="clearfix">
            评论
            <el-badge class="mark" :value="12" />
          </el-dropdown-item>
          <el-dropdown-item class="clearfix">
            回复
            <el-badge class="mark" :value="3" />
          </el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  data () {
    return {
      avatarSrc: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
    }
  }

}
</script>

<style>
.my-header{
  width:100%;
  height: 100%;
}
.my-info{
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.my-avatar{
  margin-right: 0.5rem;
}
.el-dropdown{
  color: #FFF;
}
</style>
